<template>
  <Topnav></Topnav>
  <div class="body">
    <wordform></wordform>
  </div>
  <Bottom></Bottom>
</template>
<script>
import Topnav from '@/components/Topnav.vue'
import Bottom from '@/components/Bottom.vue'
import wordform from './components/word-form.vue'
// 调用刷新总分的接口
import { refreshSum } from '@/api/user'
export default {
  name: 'word-index',
  components: {
    Topnav,
    Bottom,
    wordform
  },
  data: function () {
    return {
      data: ''
    }
  },
  created () {
    refreshSum().then((res) => {
      this.data = res.data
    })
  }
}
</script>
<style scoped lang="less">
.body{
  width: 100%;
  height: 600px;
}

</style>
